丫丫电子书[书].js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. var rule = {
  2. 类型: '小说',//影视|听书|漫画|小说
  3. title: '丫丫电子书[书]',
  4. host: 'http://www.shuyy8.cc/',
  5. url: '/fyclass/list_update_fypage.html',
  6. searchUrl: '/all/#key=**',
  7. searchable: 2,
  8. quickSearch: 0,
  9. filterable: 1,
  10. filter: '',
  11. filter_url: '',
  12. filter_def: {},
  13. headers: {
  14. 'User-Agent': 'MOBILE_UA',
  15. },
  16. timeout: 5000,
  17. hikerListCol: "text_1",
  18. hikerClassListCol: "text_1",
  19. class_parse: '#nav a;a&&Text;a&&href;.*/(.*?)/',
  20. cate_exclude: '全部小说',
  21. play_parse: true,
  22. lazy: $js.toString(() => {
  23. let html = request(input);
  24. let title = pdfh(html, 'h1&&Text');
  25. let content = pdfh(html, '#content--.readbutton&&Html').replace(/\n/g, "").split("<br>").filter(v => v).slice(0).join("\n").replace(/&nbsp;/g, ' ').split('<div')[0];
  26. let ret = JSON.stringify({
  27. title,
  28. content
  29. });
  30. input = {parse: 0, url: 'novel://' + ret, js: ''};
  31. }),
  32. double: false,
  33. 推荐: '*',
  34. 一级: '.listconl&&ul&&li;a&&Text;;span:eq(-1)&&Text;a&&href;a:eq(1)&&Text',
  35. 二级: {
  36. 重定向: $js.toString(() => {
  37. log('执行重定向:' + MY_URL);
  38. // let html = request(MY_URL);
  39. MY_URL = pd(html, 'a.diralinks&&href', MY_URL);
  40. log('二级重定向到:' + MY_URL);
  41. html = request(MY_URL);
  42. }),
  43. title: 'h1&&Text',
  44. img: 'img&&src',
  45. desc: '.lastrecord&&Text',
  46. content: '.r_cons&&Text',
  47. tabs: '.dirtitone&&h2',
  48. lists: 'ul&&li',
  49. tab_text: 'body&&Text',
  50. list_text: 'body&&Text',
  51. list_url: 'a&&href',
  52. list_url_prefix: '',
  53. },
  54. 搜索: $js.toString(() => {
  55. let html = request(input.split('#')[0]);
  56. let lis = pdfa(html, '.aubook2&&h4').filter(it => it.includes(KEY));
  57. let d = [];
  58. lis.forEach(it => {
  59. d.push({
  60. title: pdfh(it, 'a&&Text'),
  61. desc: pdfh(it, 'h4--a&&Text'),
  62. img: "",
  63. url: pd(it, 'a&&href', MY_URL),
  64. })
  65. });
  66. setResult(d);
  67. }),
  68. }